package xzr3;


public class Example {

    public static void main(String[] args) {

        int[][] a;

        a = new int[5][];

        int i, j;

        for (i = 0; i < a.length; i++)

            a[i] = new int[i + 1];

        for (i = 0; i < a.length; i++)

            for (j = 0; j < a[i].length; j++)

                a[i][j] = i + 1;

        for (i = 0; i < a.length; i++) {

            for (j = 0; j < a[i].length; j++)

                System.out.print(a[i][j] + " ");

            System.out.println("");

        }

    }

}

